<template>
    <div class="card">
        <div class="left">￥{{item.price}}</div>
        <div class="center">
            <p>{{item.name}}</p>
            <p class="red">{{item.limit}} 天内有效</p>
        </div>
        <div class="right" style=" {'background': item.status==1?'red':''} "> {{item.status==1?'去使用':"已使用"}}</div>
    </div>
</template>
<script>
export default {
  props: {
    item:Object
  }
};
</script>
<style lang="scss" scoped>
.card{
    width: 99%;
    margin: auto;
    overflow: hidden;
    margin-bottom: 10px;
    height: 120px;
    background-color: #fff;
    border-radius: 10px;
    display: flex;
    .left{
        margin-right: 10px;
        text-align: center;
        width: 120px;
        height: 100%;
        background: #eb4929;
        line-height: 120px;
        font-size: 22px;
        color: #fff;
    }
    .red{
        margin-top: 40px;
        font-size: 20px;
        color: red;
    }
    .right{
        width: 60px;
        height: 20px;
        transform: translate(50px,80px);
    }
}
</style>
